package xiaohu.day1.HJ11;

import java.util.Scanner;

public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            StringBuffer str = new StringBuffer(scanner.nextLine());
            str.reverse();
            System.out.println(str);
        }
    }
}
